<template>
  <div id="app">
    <Com></Com>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <h1 class="h1">标签</h1>
    <div class="box">
      <div class="div1">
        <div class="div1-child"></div>
      </div>
      <h2>h2</h2>
    </div>
  </div>
</template>

<script>
import Com from "./components/com";

export default {
  name: "App",
  components: { Com },
};
</script>

<style lang="less">
@import url(./style/style);

@fontColor: pink;
@font2: 100px;
.h1 {
  fontsize: 30px;
  color: @fontColor;
  border-top: 5px solid @fontColor;
}

.box {
  width: 80%;
  height: 500px;
  background-color: @fontColor;
  .div1 {
    width: @font2;
    height: @font2;
    background-color: blue;
    &-child {
      height: 50px;
      border: solid 2px salmon;
      &:hover {
        border: solid 8px salmon;
      }
    }
  }
  h2 {
    border-top: solid 20px red;
    color: darken(red, 20%);
    background-color: #fff;
    height: 15 * 20px;
  }
}
</style>
